import request from '@/utils/request'

// 查询课程推荐列表
export function listNominateDetail (query) {
  return request({
    url: '/biz/nominatedetail/list',
    method: 'get',
    params: query
  })
}

// 查询课程推荐详细
export function getNominateDetail (rid) {
  return request({
    url: '/biz/nominatedetail/' + rid,
    method: 'get'
  })
}

// 新增课程推荐
export function addNominateDetail (data) {
  return request({
    url: '/biz/nominatedetail',
    method: 'post',
    data: data
  })
}

// 修改课程推荐
export function updateNominateDetail (data) {
  return request({
    url: '/biz/nominatedetail',
    method: 'put',
    data: data
  })
}

// 删除课程推荐
export function delNominateDetail (rid) {
  return request({
    url: '/biz/nominatedetail/' + rid,
    method: 'delete'
  })
}

// 分配课程
export function distributionVideo (data) {
  return request({
    url: '/biz/nominatedetail/distributionVideo',
    method: 'post',
    data: data
  })
}